/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.unicamp.ic.lis.docseaservice.model.queryresult;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.apache.commons.dbutils.ResultSetHandler;

/**
 * 
 * @author joaosavio
 */
public class CountHandler implements ResultSetHandler<Integer> {

	@Override
	public Integer handle(ResultSet rs) throws SQLException {
		rs.next();
		return rs.getInt(1);
	}

}
